import request from '@/config/axios'

// 查询支付渠道配置列表
export const getPayChannelList = async (params: any) => {
  return await request.get({ url: `/pay/channel/list`, params })
}

// 查询支付渠道配置详情
export const getPayChannel = async (id: number | string) => {
  return await request.get({ url: `/pay/channel/get/` + id })
}

// 修改支付渠道配置
export const updatePayChannel = async (data: any) => {
  return await request.post({ url: `/pay/channel/update`, data })
}
